// Copyright (c) 2002 Cunningham & Cunningham, Inc.
// Read license.txt in this directory.

package eg.music
{

import com.fit4as.fit.*;

public class Dialog extends Fixture
{
    private var _message : String;
    private var caller : Fixture;

    public function Dialog(message : String, caller : Fixture) {
        this._message = message;
        this.caller = caller;
    }

    public function message() : String {
        return _message;
    }

    public function ok() : void {
        if (_message == "load jamed") MusicPlayer.stop();
        ActionFixture.actor = caller;
    }

}
}